package org.jiajie.designpatterndemo.composite.istack.service.logic;

import org.jiajie.designpatterndemo.composite.istack.model.vo.TreeNodeLink;

import java.util.List;
import java.util.Map;

/**
 * 树节点逻辑过滤器接口
 *
 * @author jay
 */
public interface LogicFilter {
    /**
     * 逻辑决策器
     * @param matterValue   决策值
     * @param treeNodeLinkList  决策节点
     * @return  下一个节点Id
     */
    Long filter(String matterValue, List<TreeNodeLink> treeNodeLinkList);

    /**
     * 获取决策值
     *
     * @param treeId treeId
     * @param userId    userId
     * @param decisionMatter    决策无聊到
     * @return 决策值
     */
    String matterValue(Long treeId, String userId, Map<String, String> decisionMatter);
}
